package com.ruoyi.web.controller.example;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.example.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Anonymous
@RestController
public class Student2Controller {
    @Autowired
    private StudentService service;
    //Localhost:8080/getStudent
    @GetMapping("/getStudent")
    public String getStudent() {
        return service.GetStudentList();
    }
}

